package com.huluobo.a2111douyindemo.mine;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.MutableLiveData;

import com.huluobo.mvvm_base.mvvm.base.viewmodel.BaseViewModel;
import com.huluobo.mvvm_base.mvvm.bean.UserBeanResult;

/**
 * Created by LC on 2024/3/13.
 */
public class MineViewModel extends BaseViewModel<MineRepo> {

    MutableLiveData<UserBeanResult.UserBean> success = new MutableLiveData<>();

    MutableLiveData<String> failed = new MutableLiveData<>();

    public void queryUserInfo(String username) {
        repo.queryUserInfo(username, success, failed);
    }

    public MineViewModel(@NonNull Application application) {
        super(application);
    }

    @Override
    protected MineRepo createRepo() {
        return new MineRepo();
    }
}
